﻿using GameFramework.Event;
using GameFramework;
using TowerDefence_Zombie.Data;

namespace TowerDefence_Zombie
{
    public class UnlockPlacementEventArgs : GameEventArgs
    {
        public static readonly int EventId = typeof(UnlockPlacementEventArgs).GetHashCode();

        public int AreaId
        {
            get;
            private set;
        }

        public UnlockPlacementEventArgs()
        {
            AreaId = 0;
        }

        public override int Id
        {
            get
            {
                return EventId;
            }
        }

        public static UnlockPlacementEventArgs Create(int areaId)
        {
            UnlockPlacementEventArgs placement = ReferencePool.Acquire<UnlockPlacementEventArgs>();
            placement.AreaId = areaId;
            return placement;
        }

        public override void Clear()
        {
            AreaId = 0;
        }
    }
}